import React, { Component } from 'react'
import { fn } from '../high'

class One extends Component {
    render() {
        const { count, add } = this.props
        return (
            <div>
                One -- { count }
                <button onClick = { add }>+++</button>
            </div>
        )
    }
}

One = fn(One)({
    count: 20000,
    num: 200,
    list: [1, 2, 3, 4]
})(10)

export default One
